Skip to content

Error: Supplied key param cannot be coerced into a public key#722

Merged
markstory merged 1 commit intocakephp:3.xfrom
joaopatrocinio:patch-1
May 14, 2025
Merged

Error: Supplied key param cannot be coerced into a public key#722
markstory merged 1 commit intocakephp:3.xfrom
joaopatrocinio:patch-1

Conversation

@joaopatrocinio
Copy link
Copy Markdown
Contributor

The secretKey in loadAuthenticator should be the public key (jwt.pem).

Using the private key I get this error:

image

While on this topic, should this property be called secretKey? It causes some confusion to whether its the public or private key.

The secretKey in loadAuthenticator should be the public key (jwt.pem).
@dereuromark
Copy link
Copy Markdown
Member

We should probably use publicKey as name, and deprecate the old one. This could be done as a follow up PR in 3.next.

@markstory markstory added this to the 3.x milestone May 14, 2025
@markstory markstory merged commit 445aef3 into cakephp:3.x May 14, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants